package com.stu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    private Integer couponPrice;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponEndTime;

    private Integer couponCounts;


    private String couponTpye;


    private String couponRule;


    private String yy;


    private Integer couponStatus;

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }
    public Integer getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Integer couponPrice) {
        this.couponPrice = couponPrice;
    }
    public LocalDateTime getCouponStartTime() {
        return couponStartTime;
    }

    public void setCouponStartTime(LocalDateTime couponStartTime) {
        this.couponStartTime = couponStartTime;
    }
    public LocalDateTime getCouponEndTime() {
        return couponEndTime;
    }

    public void setCouponEndTime(LocalDateTime couponEndTime) {
        this.couponEndTime = couponEndTime;
    }
    public Integer getCouponCounts() {
        return couponCounts;
    }

    public void setCouponCounts(Integer couponCounts) {
        this.couponCounts = couponCounts;
    }
    public String getCouponTpye() {
        return couponTpye;
    }

    public void setCouponTpye(String couponTpye) {
        this.couponTpye = couponTpye;
    }
    public String getCouponRule() {
        return couponRule;
    }

    public void setCouponRule(String couponRule) {
        this.couponRule = couponRule;
    }
    public String getYy() {
        return yy;
    }

    public void setYy(String yy) {
        this.yy = yy;
    }
    public Integer getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(Integer couponStatus) {
        this.couponStatus = couponStatus;
    }

    @Override
    public String toString() {
        return "Coupon{" +
            "couponId=" + couponId +
            ", couponPrice=" + couponPrice +
            ", couponStartTime=" + couponStartTime +
            ", couponEndTime=" + couponEndTime +
            ", couponCounts=" + couponCounts +
            ", couponTpye=" + couponTpye +
            ", couponRule=" + couponRule +
            ", yy=" + yy +
            ", couponStatus=" + couponStatus +
        "}";
    }
}
